package appapi.service;

import appapi.Request.InspectionPageReq;
import appapi.Vo.AppVo.AppRectVo;
import appapi.Vo.EquipmentsExportVo;
import appapi.dto.AddRectifDto;
import appapi.dto.GetRectfiDetailDto;
import appapi.dto.RectAuditDto;
import appapi.dto.UpdateRectifDto;
import appapi.entity.app.RectificationEntity;
import appapi.entity.basic.UserInfo;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author djq
 * @date 2023/5/22 15:20
 * @description:
 */
@Repository
public interface IRectificationService {

    List<Map<String, Object>> SelectRectificationPage(UserInfo userInfo, InspectionPageReq req);

    List<Map<String, Object>> SelectRectificationList(Long equipId);

    void InsertRectification(AddRectifDto dto);

    void UpdateRectification(UpdateRectifDto dto);

    void DelRectification(Long rectId);

    int InsertBatch(List<RectificationEntity> dtoList);

    int DeleteBatch(Integer rectType,List<Long> recIds);

    int DeleteByRecId(Integer rectType,Long recId);

    AppRectVo selectRectDetail(GetRectfiDetailDto dto);

    void UpdateRectificationAudit(RectAuditDto dto);

    List<EquipmentsExportVo> getList(InspectionPageReq req);

    Map<String,Object> getCompareData(Long orgaId);
}
